home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1991-12-07 | 7.4 KB | [ TEXT/MPS ]
open in: MacOS 8.1
extracted
|
Win98
extracted
|
DOS
extracted
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary ).
You can browse this item here: SillyIcons.c
Confidence Program Detection Match Type Support
66%
dexvert
Compact Compressed (Unix) (archive/compact)
ext
Supported
10%
dexvert
MacBinary (archive/macBinary)
fallback
Supported
1%
dexvert
Text File (text/txt)
fallback
Supported
100%
file
MacBinary II, Sat Dec 7 14:39:31 1991, modified Sat Dec 7 14:39:31 1991, creator 'MPS ', type ASCII, 6833 bytes "SillyIcons.c" , at 0x1b31 428 bytes resource
default (weak)
99%
file
data
default
74%
TrID
Macintosh plain text (MacBinary)
default
25%
TrID
MacBinary 2
default (weak)
100%
siegfried
fmt/1762 MacBinary (II)
default
100%
lsar
MacBinary
default
id metadata key value macFileType [ TEXT] macFileCreator [ MPS ]
hex view +--------+-------------------------+-------------------------+--------+--------+ |00000000| 00 0c 53 69 6c 6c 79 49 | 63 6f 6e 73 2e 63 00 00 |..SillyI|cons.c..| |00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000040| 00 54 45 58 54 4d 50 53 | 20 00 00 00 00 00 00 00 |.TEXTMPS| .......| |00000050| 00 00 00 00 00 1a b1 00 | 00 01 ac a5 66 d3 f3 a5 |........|....f...| |00000060| 66 d3 f3 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |f.......|........| |00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 93 ab 00 00 |........|........| |00000080| 2f 2a 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |/*------|--------| |00000090| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------| |000000a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------| |000000b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------| |000000c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------| |000000d0| 0d 23 0d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |.#.-----|--------| |000000e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------| |000000f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------| |00000100| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------| |00000110| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------| |00000120| 2d 2a 2f 0d 0d 2f 2a 09 | 0d 09 0d 09 70 75 72 70 |-*/../*.|....purp| |00000130| 6f 73 65 09 09 54 6f 20 | 64 65 6d 6f 6e 73 74 72 |ose..To |demonstr| |00000140| 61 74 65 20 75 73 65 20 | 6f 66 20 74 68 65 20 50 |ate use |of the P| |00000150| 6c 6f 74 49 63 6f 6e 49 | 44 20 61 6e 64 20 50 6c |lotIconI|D and Pl| |00000160| 6f 74 43 49 63 6f 6e 48 | 61 6e 64 6c 65 0d 09 09 |otCIconH|andle...| |00000170| 09 09 54 6f 6f 6c 62 6f | 78 20 63 61 6c 6c 73 20 |..Toolbo|x calls | |00000180| 64 6f 63 75 6d 65 6e 74 | 65 64 20 69 6e 20 4d 61 |document|ed in Ma| |00000190| 63 69 6e 74 6f 73 68 20 | 54 65 63 68 20 4e 6f 74 |cintosh |Tech Not| |000001a0| 65 20 33 30 36 2e 0d 09 | 09 09 09 53 65 65 20 74 |e 306...|...See t| |000001b0| 68 65 20 54 65 63 68 4e | 6f 74 65 20 66 6f 72 20 |he TechN|ote for | |000001c0| 6d 6f 72 65 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e |more inf|ormation| |000001d0| 2e 20 20 0d 09 09 09 09 | 0d 09 09 09 09 52 65 71 |. .....|.....Req| |000001e0| 75 69 72 65 73 20 53 79 | 73 74 65 6d 20 37 20 28 |uires Sy|stem 7 (| |000001f0| 62 65 63 61 75 73 65 20 | 74 68 61 74 27 73 20 77 |because |that's w| |00000200| 68 65 72 65 20 74 68 65 | 20 72 6f 75 74 69 6e 65 |here the| routine| |00000210| 73 20 61 72 65 29 2e 0d | 09 09 09 09 53 69 6d 70 |s are)..|....Simp| |00000220| 6c 79 20 71 75 69 74 73 | 20 66 6f 72 20 6c 65 73 |ly quits| for les| |00000230| 73 65 72 20 53 79 73 74 | 65 6d 73 2e 20 20 20 20 |ser Syst|ems. | |00000240| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00000250| 20 20 20 20 20 20 20 20 | 20 20 2a 2f 0d 0d 2f 2a | | */../*| |00000260| 09 57 41 52 4e 49 4e 47 | 09 09 49 20 61 6d 20 75 |.WARNING|..I am u| |00000270| 6e 61 62 6c 65 20 74 6f | 20 73 61 66 65 6c 79 20 |nable to| safely | |00000280| 75 73 65 20 74 72 61 6e | 73 66 6f 72 6d 73 20 6f |use tran|sforms o| |00000290| 74 68 65 72 20 74 68 61 | 6e 20 74 74 4e 6f 6e 65 |ther tha|n ttNone| |000002a0| 0d 09 09 09 09 61 6e 64 | 20 74 74 53 65 6c 65 63 |.....and| ttSelec| |000002b0| 74 65 64 20 77 69 74 68 | 20 73 6d 61 6c 6c 20 69 |ted with| small i| |000002c0| 63 6f 6e 73 2e 20 20 54 | 68 65 20 6f 74 68 65 72 |cons. T|he other| |000002d0| 73 20 63 72 61 73 68 20 | 64 69 73 61 73 74 65 72 |s crash |disaster| |000002e0| 6f 75 73 6c 79 0d 09 09 | 09 09 28 73 6f 6d 65 20 |ously...|..(some | |000002f0| 6f 6e 6c 79 20 64 6f 20 | 73 6f 20 77 68 65 6e 20 |only do |so when | |00000300| 74 68 65 20 77 69 6e 64 | 6f 77 20 69 73 20 6f 6e |the wind|ow is on| |00000310| 20 61 20 62 6c 61 63 6b | 2d 61 6e 64 2d 77 68 69 | a black|-and-whi| |00000320| 74 65 0d 09 09 09 09 64 | 65 76 69 63 65 29 2e 20 |te.....d|evice). | |00000330| 20 20 20 20 2a 2f 0d 09 | 09 09 09 0d 2f 2a 09 4e | */..|..../*.N| |00000340| 4f 54 45 3a 09 09 54 68 | 65 20 70 72 6f 67 72 61 |OTE:..Th|e progra| |00000350| 6d 20 22 73 74 65 61 6c | 73 22 20 69 74 73 20 69 |m "steal|s" its i| |00000360| 63 6f 6e 73 20 66 72 6f | 6d 20 74 68 65 20 53 79 |cons fro|m the Sy| |00000370| 73 74 65 6d 20 66 69 6c | 65 2e 20 20 49 66 20 61 |stem fil|e. If a| |00000380| 20 6e 65 65 64 65 64 0d | 09 09 09 09 69 63 6f 6e | needed.|....icon| |00000390| 20 69 73 20 6d 69 73 73 | 69 6e 67 2c 20 74 68 65 | is miss|ing, the| |000003a0| 20 70 72 6f 67 72 61 6d | 20 73 69 6d 70 6c 79 20 | program| simply | |000003b0| 62 65 65 70 73 2e 0d 09 | 09 09 09 54 68 65 72 65 |beeps...|...There| |000003c0| 20 77 65 72 65 20 6e 6f | 20 73 69 63 6e 20 77 68 | were no| sicn wh| |000003d0| 69 63 68 20 6d 61 74 63 | 68 20 74 68 65 20 66 61 |ich matc|h the fa| |000003e0| 6d 69 6c 69 65 73 20 49 | 20 75 73 65 64 2c 20 61 |milies I| used, a| |000003f0| 6e 64 20 6e 6f 0d 09 09 | 09 09 69 63 6d 38 20 61 |nd no...|..icm8 a| |00000400| 6e 64 20 69 63 6d 34 20 | 69 63 6f 6e 73 20 61 74 |nd icm4 |icons at| |00000410| 20 61 6c 6c 2c 20 73 6f | 20 74 68 65 20 22 6d 69 | all, so| the "mi| |00000420| 6e 69 22 20 73 69 7a 65 | 20 69 73 20 6e 6f 74 20 |ni" size| is not | |00000430| 65 78 65 72 63 69 73 65 | 64 2e 0d 09 09 09 09 54 |exercise|d......T| |00000440| 68 65 20 74 65 63 68 6e | 69 71 75 65 20 69 73 20 |he techn|ique is | |00000450| 74 68 65 20 73 61 6d 65 | 2e 2e 2e 73 65 65 20 74 |the same|...see t| |00000460| 68 65 20 54 65 63 68 20 | 4e 6f 74 65 2e 09 09 09 |he Tech |Note....| |00000470| 09 09 2a 2f 0d 0d 23 69 | 6e 63 6c 75 64 65 20 3c |..*/..#i|nclude <| |00000480| 54 79 70 65 73 2e 68 3e | 09 09 09 2f 2a 20 20 42 |Types.h>|.../* B| |00000490| 61 73 65 64 20 6f 6e 20 | 74 68 65 20 22 53 69 6c |ased on |the "Sil| |000004a0| 6c 79 42 61 6c 6c 73 22 | 20 73 61 6d 70 6c 65 2e |lyBalls"| sample.| |000004b0| 20 20 53 6f 6d 65 20 6f | 66 20 74 68 65 73 65 20 | Some o|f these | |000004c0| 2a 2f 0d 23 69 6e 63 6c | 75 64 65 20 3c 4d 65 6d |*/.#incl|ude <Mem| |000004d0| 6f 72 79 2e 68 3e 09 09 | 09 2f 2a 09 69 6e 63 6c |ory.h>..|./*.incl| |000004e0| 75 64 65 20 66 69 6c 65 | 73 20 61 72 65 6e 27 74 |ude file|s aren't| |000004f0| 20 6e 65 65 64 65 64 2e | 09 09 09 09 09 20 2a 2f | needed.|..... */| |00000500| 0d 23 69 6e 63 6c 75 64 | 65 20 3c 51 75 69 63 6b |.#includ|e <Quick| |00000510| 64 72 61 77 2e 68 3e 0d | 23 69 6e 63 6c 75 64 65 |draw.h>.|#include| |00000520| 20 3c 46 6f 6e 74 73 2e | 68 3e 0d 23 69 6e 63 6c | <Fonts.|h>.#incl| |00000530| 75 64 65 20 3c 45 76 65 | 6e 74 73 2e 68 3e 0d 23 |ude <Eve|nts.h>.#| |00000540| 69 6e 63 6c 75 64 65 20 | 3c 4d 65 6e 75 73 2e 68 |include |<Menus.h| |00000550| 3e 0d 23 69 6e 63 6c 75 | 64 65 20 3c 57 69 6e 64 |>.#inclu|de <Wind| |00000560| 6f 77 73 2e 68 3e 0d 23 | 69 6e 63 6c 75 64 65 20 |ows.h>.#|include | |00000570| 3c 54 65 78 74 45 64 69 | 74 2e 68 3e 0d 23 69 6e |<TextEdi|t.h>.#in| |00000580| 63 6c 75 64 65 20 3c 44 | 69 61 6c 6f 67 73 2e 68 |clude <D|ialogs.h| |00000590| 3e 0d 23 69 6e 63 6c 75 | 64 65 20 3c 4f 53 55 74 |>.#inclu|de <OSUt| |000005a0| 69 6c 73 2e 68 3e 0d 23 | 69 6e 63 6c 75 64 65 20 |ils.h>.#|include | |000005b0| 3c 54 6f 6f 6c 55 74 69 | 6c 73 2e 68 3e 0d 23 69 |<ToolUti|ls.h>.#i| |000005c0| 6e 63 6c 75 64 65 20 3c | 53 65 67 4c 6f 61 64 2e |nclude <|SegLoad.| |000005d0| 68 3e 0d 23 69 6e 63 6c | 75 64 65 20 3c 47 65 73 |h>.#incl|ude <Ges| |000005e0| 74 61 6c 74 45 71 75 2e | 68 3e 0d 23 69 6e 63 6c |taltEqu.|h>.#incl| |000005f0| 75 64 65 20 3c 49 63 6f | 6e 50 6c 6f 74 74 69 6e |ude <Ico|nPlottin| |00000600| 67 2e 68 3e 0d 0d 2f 2a | 20 43 6f 6e 73 74 61 6e |g.h>../*| Constan| |00000610| 74 73 20 2a 2f 0d 23 64 | 65 66 69 6e 65 20 42 61 |ts */.#d|efine Ba| |00000620| 6c 6c 57 69 64 74 68 09 | 09 32 30 0d 23 64 65 66 |llWidth.|.20.#def| |00000630| 69 6e 65 20 42 61 6c 6c | 48 65 69 67 68 74 09 09 |ine Ball|Height..| |00000640| 32 30 0d 23 64 65 66 69 | 6e 65 20 42 6f 62 53 69 |20.#defi|ne BobSi| |00000650| 7a 65 09 09 09 38 09 09 | 2f 2a 20 53 69 7a 65 20 |ze...8..|/* Size | |00000660| 6f 66 20 74 65 78 74 20 | 69 6e 20 65 61 63 68 20 |of text |in each | |00000670| 62 61 6c 6c 20 2a 2f 0d | 0d 2f 2a 20 47 6c 6f 62 |ball */.|./* Glob| |00000680| 61 6c 73 20 2a 2f 0d 52 | 65 63 74 09 77 69 6e 64 |als */.R|ect.wind| |00000690| 52 65 63 74 3b 0d 09 0d | 2f 2a 20 50 72 6f 74 6f |Rect;...|/* Proto| |000006a0| 74 79 70 65 73 20 2a 2f | 0d 76 6f 69 64 20 49 6e |types */|.void In| |000006b0| 69 74 69 61 6c 69 7a 65 | 28 76 6f 69 64 29 3b 0d |itialize|(void);.| |000006c0| 76 6f 69 64 20 49 63 6f | 6e 73 28 76 6f 69 64 29 |void Ico|ns(void)| |000006d0| 3b 0d 0d 2f 2a 20 0d 2a | 2a 09 4d 61 69 6e 20 62 |;../* .*|*.Main b| |000006e0| 6f 64 79 20 6f 66 20 70 | 72 6f 67 72 61 6d 20 53 |ody of p|rogram S| |000006f0| 69 6c 6c 79 42 61 6c 6c | 73 0d 2a 2f 0d 6d 61 69 |illyBall|s.*/.mai| |00000700| 6e 28 29 0d 7b 0d 09 6c | 6f 6e 67 20 76 65 72 73 |n().{..l|ong vers| |00000710| 69 6f 6e 20 3d 20 30 3b | 0d 09 28 76 6f 69 64 29 |ion = 0;|..(void)| |00000720| 20 47 65 73 74 61 6c 74 | 28 67 65 73 74 61 6c 74 | Gestalt|(gestalt| |00000730| 53 79 73 74 65 6d 56 65 | 72 73 69 6f 6e 2c 20 26 |SystemVe|rsion, &| |00000740| 76 65 72 73 69 6f 6e 29 | 3b 0d 09 69 66 20 28 20 |version)|;..if ( | |00000750| 76 65 72 73 69 6f 6e 20 | 3e 3d 20 30 78 30 30 30 |version |>= 0x000| |00000760| 30 30 37 30 30 29 20 7b | 0d 09 09 49 6e 69 74 69 |00700) {|...Initi| |00000770| 61 6c 69 7a 65 28 29 3b | 0d 09 09 0d 09 09 49 63 |alize();|......Ic| |00000780| 6f 6e 73 28 29 3b 0d 09 | 09 64 6f 20 7b 0d 09 09 |ons();..|.do {...| |00000790| 7d 20 77 68 69 6c 65 20 | 28 21 42 75 74 74 6f 6e |} while |(!Button| |000007a0| 28 29 29 3b 0d 09 7d 0d | 7d 0d 0d 2f 2a 20 0d 2a |());..}.|}../* .*| |000007b0| 2a 09 49 6e 69 74 69 61 | 6c 69 7a 65 20 65 76 65 |*.Initia|lize eve| |000007c0| 72 79 74 68 69 6e 67 20 | 66 6f 72 20 74 68 65 20 |rything |for the | |000007d0| 70 72 6f 67 72 61 6d 2c | 20 6d 61 6b 65 20 73 75 |program,| make su| |000007e0| 72 65 20 77 65 20 63 61 | 6e 20 72 75 6e 0d 2a 2f |re we ca|n run.*/| |000007f0| 0d 76 6f 69 64 20 49 6e | 69 74 69 61 6c 69 7a 65 |.void In|itialize| |00000800| 28 29 0d 7b 0d 09 57 69 | 6e 64 6f 77 50 74 72 09 |().{..Wi|ndowPtr.| |00000810| 6d 61 69 6e 50 74 72 3b | 0d 09 4f 53 45 72 72 09 |mainPtr;|..OSErr.| |00000820| 09 65 72 72 6f 72 3b 0d | 09 53 79 73 45 6e 76 52 |.error;.|.SysEnvR| |00000830| 65 63 09 74 68 65 57 6f | 72 6c 64 3b 0d 09 0d 09 |ec.theWo|rld;....| |00000840| 2f 2a 0d 09 2a 2a 09 54 | 65 73 74 20 74 68 65 20 |/*..**.T|est the | |00000850| 63 6f 6d 70 75 74 65 72 | 20 74 6f 20 62 65 20 73 |computer| to be s| |00000860| 75 72 65 20 77 65 20 63 | 61 6e 20 64 6f 20 63 6f |ure we c|an do co| |00000870| 6c 6f 72 2e 20 20 0d 09 | 2a 2a 09 49 66 20 6e 6f |lor. ..|**.If no| |00000880| 74 20 77 65 20 77 6f 75 | 6c 64 20 63 72 61 73 68 |t we wou|ld crash| |00000890| 2c 20 77 68 69 63 68 20 | 77 6f 75 6c 64 20 62 65 |, which |would be| |000008a0| 20 62 61 64 2e 20 20 0d | 09 2a 2a 09 49 66 20 77 | bad. .|.**.If w| |000008b0| 65 20 63 61 6e d5 74 20 | 72 75 6e 2c 20 6a 75 73 |e can.t |run, jus| |000008c0| 74 20 62 65 65 70 20 61 | 6e 64 20 65 78 69 74 2e |t beep a|nd exit.| |000008d0| 0d 09 2a 2f 0d 09 65 72 | 72 6f 72 20 3d 20 53 79 |..*/..er|ror = Sy| |000008e0| 73 45 6e 76 69 72 6f 6e | 73 28 31 2c 20 26 74 68 |sEnviron|s(1, &th| |000008f0| 65 57 6f 72 6c 64 29 3b | 0d 09 69 66 20 28 74 68 |eWorld);|..if (th| |00000900| 65 57 6f 72 6c 64 2e 68 | 61 73 43 6f 6c 6f 72 51 |eWorld.h|asColorQ| |00000910| 44 20 3d 3d 20 66 61 6c | 73 65 29 20 7b 0d 09 09 |D == fal|se) {...| |00000920| 53 79 73 42 65 65 70 28 | 35 30 29 3b 0d 09 09 45 |SysBeep(|50);...E| |00000930| 78 69 74 54 6f 53 68 65 | 6c 6c 28 29 3b 09 09 09 |xitToShe|ll();...| |00000940| 09 09 2f 2a 20 49 66 20 | 6e 6f 20 63 6f 6c 6f 72 |../* If |no color| |00000950| 20 51 44 2c 20 77 65 20 | 6d 75 73 74 20 6c 65 61 | QD, we |must lea| |00000960| 76 65 2e 20 2a 2f 0d 09 | 7d 0d 09 0d 09 2f 2a 20 |ve. */..|}..../* | |00000970| 49 6e 69 74 69 61 6c 69 | 7a 65 20 61 6c 6c 20 74 |Initiali|ze all t| |00000980| 68 65 20 6e 65 65 64 65 | 64 20 6d 61 6e 61 67 65 |he neede|d manage| |00000990| 72 73 2e 20 2a 2f 0d 09 | 49 6e 69 74 47 72 61 66 |rs. */..|InitGraf| |000009a0| 28 26 71 64 2e 74 68 65 | 50 6f 72 74 29 3b 0d 09 |(&qd.the|Port);..| |000009b0| 49 6e 69 74 46 6f 6e 74 | 73 28 29 3b 0d 09 49 6e |InitFont|s();..In| |000009c0| 69 74 57 69 6e 64 6f 77 | 73 28 29 3b 0d 09 49 6e |itWindow|s();..In| |000009d0| 69 74 4d 65 6e 75 73 28 | 29 3b 0d 09 54 45 49 6e |itMenus(|);..TEIn| |000009e0| 69 74 28 29 3b 0d 09 49 | 6e 69 74 44 69 61 6c 6f |it();..I|nitDialo| |000009f0| 67 73 28 6e 69 6c 29 3b | 0d 09 49 6e 69 74 43 75 |gs(nil);|..InitCu| |00000a00| 72 73 6f 72 28 29 3b 0d | 0d 09 2f 2a 0d 09 2a 2a |rsor();.|../*..**| |00000a10| 09 54 6f 20 6d 61 6b 65 | 20 74 68 65 20 52 61 6e |.To make| the Ran| |00000a20| 64 6f 6d 20 73 65 71 75 | 65 6e 63 65 73 20 74 72 |dom sequ|ences tr| |00000a30| 75 6c 79 20 72 61 6e 64 | 6f 6d 2c 20 77 65 20 6e |uly rand|om, we n| |00000a40| 65 65 64 20 74 6f 20 6d | 61 6b 65 20 74 68 65 20 |eed to m|ake the | |00000a50| 73 65 65 64 20 73 74 61 | 72 74 0d 09 2a 2a 09 61 |seed sta|rt..**.a| |00000a60| 74 20 61 20 64 69 66 66 | 65 72 65 6e 74 20 6e 75 |t a diff|erent nu| |00000a70| 6d 62 65 72 2e 20 20 41 | 6e 20 65 61 73 79 20 77 |mber. A|n easy w| |00000a80| 61 79 20 74 6f 20 64 6f | 20 74 68 69 73 20 69 73 |ay to do| this is| |00000a90| 20 74 6f 20 70 75 74 20 | 74 68 65 20 63 75 72 72 | to put |the curr| |00000aa0| 65 6e 74 20 74 69 6d 65 | 0d 09 2a 2a 09 61 6e 64 |ent time|..**.and| |00000ab0| 20 64 61 74 65 20 69 6e | 74 6f 20 74 68 65 20 73 | date in|to the s| |00000ac0| 65 65 64 2e 20 20 53 69 | 6e 63 65 20 69 74 20 69 |eed. Si|nce it i| |00000ad0| 73 20 61 6c 77 61 79 73 | 20 69 6e 63 72 65 6d 65 |s always| increme| |00000ae0| 6e 74 69 6e 67 20 74 68 | 65 20 73 74 61 72 74 69 |nting th|e starti| |00000af0| 6e 67 20 73 65 65 64 0d | 09 2a 2a 09 77 69 6c 6c |ng seed.|.**.will| |00000b00| 20 61 6c 77 61 79 73 20 | 62 65 20 64 69 66 66 65 | always |be diffe| |00000b10| 72 65 6e 74 2e 20 20 44 | 6f 6e d5 74 20 66 6f 72 |rent. D|on.t for| |00000b20| 20 65 61 63 68 20 63 61 | 6c 6c 20 6f 66 20 52 61 | each ca|ll of Ra| |00000b30| 6e 64 6f 6d 2c 20 6f 72 | 20 74 68 65 20 73 65 71 |ndom, or| the seq| |00000b40| 75 65 6e 63 65 0d 09 2a | 2a 09 77 69 6c 6c 20 6e |uence..*|*.will n| |00000b50| 6f 20 6c 6f 6e 67 65 72 | 20 62 65 20 72 61 6e 64 |o longer| be rand| |00000b60| 6f 6d 2e 20 20 4f 6e 6c | 79 20 6e 65 65 64 65 64 |om. Onl|y needed| |00000b70| 20 6f 6e 63 65 2c 20 68 | 65 72 65 20 69 6e 20 74 | once, h|ere in t| |00000b80| 68 65 20 69 6e 69 74 2e | 0d 09 2a 2f 0d 09 47 65 |he init.|..*/..Ge| |00000b90| 74 44 61 74 65 54 69 6d | 65 28 28 75 6e 73 69 67 |tDateTim|e((unsig| |00000ba0| 6e 65 64 20 6c 6f 6e 67 | 2a 29 20 26 71 64 2e 72 |ned long|*) &qd.r| |00000bb0| 61 6e 64 53 65 65 64 29 | 3b 0d 0d 09 2f 2a 0d 09 |andSeed)|;.../*..| |00000bc0| 2a 2a 09 4d 61 6b 65 20 | 61 20 6e 65 77 20 77 69 |**.Make |a new wi| |00000bd0| 6e 64 6f 77 20 66 6f 72 | 20 64 72 61 77 69 6e 67 |ndow for| drawing| |00000be0| 20 69 6e 2c 20 61 6e 64 | 20 69 74 20 6d 75 73 74 | in, and| it must| |00000bf0| 20 62 65 20 61 20 63 6f | 6c 6f 72 20 77 69 6e 64 | be a co|lor wind| |00000c00| 6f 77 2e 20 20 0d 09 2a | 2a 09 54 68 65 20 77 69 |ow. ..*|*.The wi| |00000c10| 6e 64 6f 77 20 69 73 20 | 66 75 6c 6c 20 73 63 72 |ndow is |full scr| |00000c20| 65 65 6e 20 73 69 7a 65 | 2c 20 6d 61 64 65 20 73 |een size|, made s| |00000c30| 6d 61 6c 6c 65 72 20 74 | 6f 20 6d 61 6b 65 20 69 |maller t|o make i| |00000c40| 74 20 6d 6f 72 65 20 76 | 69 73 69 62 6c 65 2e 0d |t more v|isible..| |00000c50| 09 2a 2f 0d 09 77 69 6e | 64 52 65 63 74 20 3d 20 |.*/..win|dRect = | |00000c60| 71 64 2e 73 63 72 65 65 | 6e 42 69 74 73 2e 62 6f |qd.scree|nBits.bo| |00000c70| 75 6e 64 73 3b 0d 09 49 | 6e 73 65 74 52 65 63 74 |unds;..I|nsetRect| |00000c80| 28 26 77 69 6e 64 52 65 | 63 74 2c 20 35 30 2c 20 |(&windRe|ct, 50, | |00000c90| 35 30 29 3b 0d 09 6d 61 | 69 6e 50 74 72 20 3d 20 |50);..ma|inPtr = | |00000ca0| 4e 65 77 43 57 69 6e 64 | 6f 77 28 6e 69 6c 2c 20 |NewCWind|ow(nil, | |00000cb0| 26 77 69 6e 64 52 65 63 | 74 2c 20 22 5c 70 42 6f |&windRec|t, "\pBo| |00000cc0| 33 62 20 4c 61 6e 64 22 | 2c 20 74 72 75 65 2c 20 |3b Land"|, true, | |00000cd0| 64 6f 63 75 6d 65 6e 74 | 50 72 6f 63 2c 20 0d 09 |document|Proc, ..| |00000ce0| 09 09 09 09 09 28 57 69 | 6e 64 6f 77 50 74 72 29 |.....(Wi|ndowPtr)| |00000cf0| 20 2d 31 2c 20 66 61 6c | 73 65 2c 20 30 29 3b 0d | -1, fal|se, 0);.| |00000d00| 09 09 0d 09 53 65 74 50 | 6f 72 74 28 6d 61 69 6e |....SetP|ort(main| |00000d10| 50 74 72 29 3b 09 09 09 | 09 09 09 2f 2a 20 73 65 |Ptr);...|.../* se| |00000d20| 74 20 77 69 6e 64 6f 77 | 20 74 6f 20 63 75 72 72 |t window| to curr| |00000d30| 65 6e 74 20 67 72 61 66 | 20 70 6f 72 74 20 2a 2f |ent graf| port */| |00000d40| 0d 09 54 65 78 74 53 69 | 7a 65 28 42 6f 62 53 69 |..TextSi|ze(BobSi| |00000d50| 7a 65 29 3b 09 09 09 09 | 09 09 2f 2a 20 73 6d 61 |ze);....|../* sma| |00000d60| 6c 6c 65 72 20 66 6f 6e | 74 20 66 6f 72 20 64 72 |ller fon|t for dr| |00000d70| 61 77 69 6e 67 2e 20 2a | 2f 0d 7d 0d 0d 49 63 6f |awing. *|/.}..Ico| |00000d80| 6e 54 72 61 6e 73 66 6f | 72 6d 54 79 70 65 20 4e |nTransfo|rmType N| |00000d90| 65 78 74 54 72 61 6e 73 | 66 6f 72 6d 28 49 63 6f |extTrans|form(Ico| |00000da0| 6e 54 72 61 6e 73 66 6f | 72 6d 54 79 70 65 20 74 |nTransfo|rmType t| |00000db0| 72 61 6e 73 29 20 7b 0d | 09 73 77 69 74 63 68 20 |rans) {.|.switch | |00000dc0| 28 74 72 61 6e 73 29 20 | 7b 0d 09 09 63 61 73 65 |(trans) |{...case| |00000dd0| 20 74 74 4e 6f 6e 65 3a | 0d 09 09 09 72 65 74 75 | ttNone:|....retu| |00000de0| 72 6e 20 74 74 44 69 73 | 61 62 6c 65 64 3b 0d 09 |rn ttDis|abled;..| |00000df0| 09 0d 09 09 63 61 73 65 | 20 74 74 44 69 73 61 62 |....case| ttDisab| |00000e00| 6c 65 64 3a 0d 09 09 09 | 72 65 74 75 72 6e 20 74 |led:....|return t| |00000e10| 74 4f 66 66 6c 69 6e 65 | 3b 0d 09 09 0d 09 09 63 |tOffline|;......c| |00000e20| 61 73 65 20 74 74 4f 66 | 66 6c 69 6e 65 3a 0d 09 |ase ttOf|fline:..| |00000e30| 09 09 72 65 74 75 72 6e | 20 74 74 4f 70 65 6e 3b |..return| ttOpen;| |00000e40| 0d 09 09 0d 09 09 63 61 | 73 65 20 74 74 4f 70 65 |......ca|se ttOpe| |00000e50| 6e 3a 0d 09 09 09 72 65 | 74 75 72 6e 20 74 74 53 |n:....re|turn ttS| |00000e60| 65 6c 65 63 74 65 64 3b | 0d 09 09 0d 09 09 63 61 |elected;|......ca| |00000e70| 73 65 20 74 74 53 65 6c | 65 63 74 65 64 3a 0d 09 |se ttSel|ected:..| |00000e80| 09 09 72 65 74 75 72 6e | 20 74 74 53 65 6c 65 63 |..return| ttSelec| |00000e90| 74 65 64 44 69 73 61 62 | 6c 65 64 3b 0d 09 09 0d |tedDisab|led;....| |00000ea0| 09 09 63 61 73 65 20 74 | 74 53 65 6c 65 63 74 65 |..case t|tSelecte| |00000eb0| 64 44 69 73 61 62 6c 65 | 64 3a 0d 09 09 09 72 65 |dDisable|d:....re| |00000ec0| 74 75 72 6e 20 74 74 53 | 65 6c 65 63 74 65 64 4f |turn ttS|electedO| |00000ed0| 66 66 6c 69 6e 65 3b 0d | 09 09 0d 09 09 63 61 73 |ffline;.|.....cas| |00000ee0| 65 20 74 74 53 65 6c 65 | 63 74 65 64 4f 66 66 6c |e ttSele|ctedOffl| |00000ef0| 69 6e 65 3a 0d 09 09 09 | 72 65 74 75 72 6e 20 74 |ine:....|return t| |00000f00| 74 53 65 6c 65 63 74 65 | 64 4f 70 65 6e 3b 0d 09 |tSelecte|dOpen;..| |00000f10| 09 0d 09 09 63 61 73 65 | 20 74 74 53 65 6c 65 63 |....case| ttSelec| |00000f20| 74 65 64 4f 70 65 6e 3a | 0d 09 09 64 65 66 61 75 |tedOpen:|...defau| |00000f30| 6c 74 3a 0d 09 09 09 72 | 65 74 75 72 6e 20 74 74 |lt:....r|eturn tt| |00000f40| 4e 6f 6e 65 3b 0d 09 7d | 0d 7d 0d 0d 49 63 6f 6e |None;..}|.}..Icon| |00000f50| 54 72 61 6e 73 66 6f 72 | 6d 54 79 70 65 20 4e 65 |Transfor|mType Ne| |00000f60| 78 74 54 69 6e 74 28 49 | 63 6f 6e 54 72 61 6e 73 |xtTint(I|conTrans| |00000f70| 66 6f 72 6d 54 79 70 65 | 20 74 69 6e 74 29 20 7b |formType| tint) {| |00000f80| 0d 09 69 66 20 28 28 74 | 69 6e 74 20 2b 3d 20 74 |..if ((t|int += t| |00000f90| 74 4c 61 62 65 6c 31 29 | 20 3e 20 74 74 4c 61 62 |tLabel1)| > ttLab| |00000fa0| 65 6c 37 29 0d 09 09 72 | 65 74 75 72 6e 20 74 74 |el7)...r|eturn tt| |00000fb0| 4c 61 62 65 6c 30 3b 0d | 09 65 6c 73 65 0d 09 09 |Label0;.|.else...| |00000fc0| 72 65 74 75 72 6e 20 74 | 69 6e 74 3b 0d 7d 0d 0d |return t|int;.}..| |00000fd0| 2f 2a 20 0d 2a 2a 09 49 | 63 6f 6e 73 3a 20 44 72 |/* .**.I|cons: Dr| |00000fe0| 61 77 20 74 68 65 20 69 | 63 6f 6e 73 2e 0d 2a 2f |aw the i|cons..*/| |00000ff0| 0d 76 6f 69 64 20 49 63 | 6f 6e 73 28 29 0d 7b 0d |.void Ic|ons().{.| |00001000| 09 52 65 63 74 09 09 62 | 69 67 52 65 63 74 3b 0d |.Rect..b|igRect;.| |00001010| 09 52 65 63 74 09 09 73 | 6d 61 6c 6c 52 65 63 74 |.Rect..s|mallRect| |00001020| 3b 0d 09 52 65 63 74 09 | 09 74 68 65 43 49 63 6f |;..Rect.|.theCIco| |00001030| 6e 52 65 63 74 3b 0d 09 | 52 65 63 74 09 09 74 69 |nRect;..|Rect..ti| |00001040| 6e 74 52 65 63 74 3b 0d | 09 52 65 63 74 09 09 73 |ntRect;.|.Rect..s| |00001050| 6d 61 6c 6c 54 69 6e 74 | 52 65 63 74 3b 0d 09 52 |mallTint|Rect;..R| |00001060| 65 63 74 09 09 74 69 6e | 74 43 49 63 6f 6e 52 65 |ect..tin|tCIconRe| |00001070| 63 74 3b 0d 09 52 65 63 | 74 09 09 73 74 72 65 74 |ct;..Rec|t..stret| |00001080| 63 68 52 65 63 74 3b 0d | 09 52 65 63 74 09 09 63 |chRect;.|.Rect..c| |00001090| 72 61 73 68 52 65 63 74 | 3b 0d 09 4f 53 45 72 72 |rashRect|;..OSErr| |000010a0| 20 09 09 65 72 72 3b 0d | 09 43 49 63 6f 6e 48 61 | ..err;.|.CIconHa| |000010b0| 6e 64 6c 65 20 74 68 65 | 49 63 6f 6e 20 20 20 20 |ndle the|Icon | |000010c0| 20 3d 20 4e 55 4c 4c 3b | 0d 09 49 63 6f 6e 54 72 | = NULL;|..IconTr| |000010d0| 61 6e 73 66 6f 72 6d 54 | 79 70 65 20 74 72 61 6e |ansformT|ype tran| |000010e0| 73 20 3d 20 74 74 4e 6f | 6e 65 3b 0d 09 49 63 6f |s = ttNo|ne;..Ico| |000010f0| 6e 54 72 61 6e 73 66 6f | 72 6d 54 79 70 65 20 74 |nTransfo|rmType t| |00001100| 69 6e 74 20 20 3d 20 74 | 74 4c 61 62 65 6c 30 3b |int = t|tLabel0;| |00001110| 0d 09 53 65 74 52 65 63 | 74 28 26 62 69 67 52 65 |..SetRec|t(&bigRe| |00001120| 63 74 2c 20 20 20 20 20 | 20 20 32 30 2c 20 20 32 |ct, | 20, 2| |00001130| 30 2c 20 20 35 33 2c 20 | 20 35 33 29 3b 0d 09 53 |0, 53, | 53);..S| |00001140| 65 74 52 65 63 74 28 26 | 73 6d 61 6c 6c 52 65 63 |etRect(&|smallRec| |00001150| 74 2c 20 20 20 20 20 32 | 30 2c 20 20 36 30 2c 20 |t, 2|0, 60, | |00001160| 20 33 37 2c 20 20 37 37 | 29 3b 0d 09 53 65 74 52 | 37, 77|);..SetR| |00001170| 65 63 74 28 26 74 68 65 | 43 49 63 6f 6e 52 65 63 |ect(&the|CIconRec| |00001180| 74 2c 20 20 32 30 2c 20 | 20 39 30 2c 20 20 35 33 |t, 20, | 90, 53| |00001190| 2c 20 31 32 33 29 3b 0d | 09 53 65 74 52 65 63 74 |, 123);.|.SetRect| |000011a0| 28 26 74 69 6e 74 52 65 | 63 74 2c 20 20 20 20 20 |(&tintRe|ct, | |000011b0| 20 32 30 2c 20 31 34 30 | 2c 20 20 35 33 2c 20 31 | 20, 140|, 53, 1| |000011c0| 37 33 29 3b 0d 09 53 65 | 74 52 65 63 74 28 26 73 |73);..Se|tRect(&s| |000011d0| 6d 61 6c 6c 54 69 6e 74 | 52 65 63 74 2c 20 32 30 |mallTint|Rect, 20| |000011e0| 2c 20 31 38 30 2c 20 20 | 33 37 2c 20 31 39 37 29 |, 180, |37, 197)| |000011f0| 3b 0d 09 53 65 74 52 65 | 63 74 28 26 74 69 6e 74 |;..SetRe|ct(&tint| |00001200| 43 49 63 6f 6e 52 65 63 | 74 2c 20 32 30 2c 20 32 |CIconRec|t, 20, 2| |00001210| 31 30 2c 20 20 35 33 2c | 20 32 34 33 29 3b 0d 09 |10, 53,| 243);..| |00001220| 53 65 74 52 65 63 74 28 | 26 73 74 72 65 74 63 68 |SetRect(|&stretch| |00001230| 52 65 63 74 2c 20 20 20 | 32 30 2c 20 32 36 30 2c |Rect, |20, 260,| |00001240| 20 20 38 35 2c 20 33 32 | 35 29 3b 0d 09 0d 09 54 | 85, 32|5);....T| |00001250| 65 78 74 46 6f 6e 74 28 | 31 29 3b 0d 09 54 65 78 |extFont(|1);..Tex| |00001260| 74 53 69 7a 65 28 39 29 | 3b 0d 09 0d 09 64 6f 20 |tSize(9)|;....do | |00001270| 7b 0d 09 09 65 72 72 20 | 3d 20 50 6c 6f 74 49 63 |{...err |= PlotIc| |00001280| 6f 6e 49 44 28 26 62 69 | 67 52 65 63 74 2c 20 30 |onID(&bi|gRect, 0| |00001290| 2c 20 74 72 61 6e 73 2c | 20 2d 33 39 39 34 29 3b |, trans,| -3994);| |000012a0| 0d 09 09 69 66 20 28 65 | 72 72 29 0d 09 09 09 53 |...if (e|rr)....S| |000012b0| 79 73 42 65 65 70 28 37 | 29 3b 0d 0d 09 09 2f 2a |ysBeep(7|);..../*| |000012c0| 09 54 68 65 20 74 72 61 | 6e 73 66 6f 72 6d 73 20 |.The tra|nsforms | |000012d0| 49 27 6d 20 6e 6f 74 20 | 61 6c 6c 6f 77 69 6e 67 |I'm not |allowing| |000012e0| 20 68 65 72 65 20 63 61 | 75 73 65 20 73 65 72 69 | here ca|use seri| |000012f0| 6f 75 73 20 63 72 61 73 | 68 65 73 20 69 6e 20 73 |ous cras|hes in s| |00001300| 6f 6d 65 20 6f 72 0d 09 | 09 09 61 6c 6c 20 73 63 |ome or..|..all sc| |00001310| 72 65 65 6e 20 64 65 70 | 74 68 73 20 77 68 65 6e |reen dep|ths when| |00001320| 20 61 70 70 6c 69 65 64 | 20 74 6f 20 53 6d 61 6c | applied| to Smal| |00001330| 6c 20 28 6f 72 20 4d 69 | 6e 69 29 20 69 63 6f 6e |l (or Mi|ni) icon| |00001340| 73 2e 20 20 44 6f 6e 27 | 74 20 64 6f 20 69 74 2e |s. Don'|t do it.| |00001350| 20 20 2a 2f 0d 09 09 69 | 66 20 28 74 72 61 6e 73 | */...i|f (trans| |00001360| 20 3d 3d 20 74 74 4e 6f | 6e 65 20 7c 7c 20 74 72 | == ttNo|ne || tr| |00001370| 61 6e 73 20 3d 3d 20 74 | 74 53 65 6c 65 63 74 65 |ans == t|tSelecte| |00001380| 64 29 20 7b 0d 09 09 09 | 65 72 72 20 3d 20 50 6c |d) {....|err = Pl| |00001390| 6f 74 49 63 6f 6e 49 44 | 28 26 73 6d 61 6c 6c 52 |otIconID|(&smallR| |000013a0| 65 63 74 2c 20 30 2c 20 | 74 72 61 6e 73 2c 20 2d |ect, 0, |trans, -| |000013b0| 33 39 39 34 29 3b 0d 09 | 09 09 69 66 20 28 65 72 |3994);..|..if (er| |000013c0| 72 29 0d 09 09 09 09 53 | 79 73 42 65 65 70 28 37 |r).....S|ysBeep(7| |000013d0| 29 3b 0d 09 09 7d 0d 09 | 09 65 6c 73 65 20 7b 0d |);...}..|.else {.| |000013e0| 09 09 09 53 65 74 52 65 | 63 74 28 26 63 72 61 73 |...SetRe|ct(&cras| |000013f0| 68 52 65 63 74 2c 20 73 | 6d 61 6c 6c 52 65 63 74 |hRect, s|mallRect| |00001400| 2e 6c 65 66 74 2c 0d 09 | 09 09 09 09 09 09 09 73 |.left,..|.......s| |00001410| 6d 61 6c 6c 52 65 63 74 | 2e 74 6f 70 20 2b 20 34 |mallRect|.top + 4| |00001420| 2c 0d 09 09 09 09 09 09 | 09 09 73 6d 61 6c 6c 52 |,.......|..smallR| |00001430| 65 63 74 2e 6c 65 66 74 | 20 2b 20 34 38 2c 0d 09 |ect.left| + 48,..| |00001440| 09 09 09 09 09 09 09 73 | 6d 61 6c 6c 52 65 63 74 |.......s|mallRect| |00001450| 2e 74 6f 70 20 2b 20 32 | 30 29 3b 0d 09 09 09 54 |.top + 2|0);....T| |00001460| 65 78 74 42 6f 78 28 22 | 43 72 61 73 68 21 22 2c |extBox("|Crash!",| |00001470| 20 36 2c 20 26 63 72 61 | 73 68 52 65 63 74 2c 20 | 6, &cra|shRect, | |00001480| 74 65 4a 75 73 74 4c 65 | 66 74 29 3b 0d 09 09 7d |teJustLe|ft);...}| |00001490| 0d 09 09 0d 09 09 2f 2a | 09 54 68 65 72 65 27 73 |....../*|.There's| |000014a0| 20 6e 6f 20 72 65 61 73 | 6f 6e 20 6e 6f 74 20 74 | no reas|on not t| |000014b0| 6f 20 61 70 70 6c 79 20 | 74 68 65 20 74 72 61 6e |o apply |the tran| |000014c0| 73 66 6f 72 6d 20 74 6f | 20 61 6c 6c 20 74 69 6e |sform to| all tin| |000014d0| 74 73 2c 20 62 75 74 20 | 73 6f 6d 65 0d 09 09 09 |ts, but |some....| |000014e0| 6f 66 20 74 68 65 6d 20 | 61 72 65 20 68 61 72 64 |of them |are hard| |000014f0| 20 74 6f 20 73 65 65 2c | 20 73 6f 20 77 65 27 6c | to see,| so we'l| |00001500| 6c 20 6d 61 6b 65 20 74 | 68 69 73 20 72 6f 77 20 |l make t|his row | |00001510| 64 6f 20 64 6f 75 62 6c | 65 20 64 75 74 79 2e 20 |do doubl|e duty. | |00001520| 20 20 20 20 2a 2f 0d 09 | 09 65 72 72 20 3d 20 50 | */..|.err = P| |00001530| 6c 6f 74 49 63 6f 6e 49 | 44 28 26 74 69 6e 74 52 |lotIconI|D(&tintR| |00001540| 65 63 74 2c 20 30 2c 20 | 74 69 6e 74 20 2b 20 28 |ect, 0, |tint + (| |00001550| 28 74 72 61 6e 73 20 3e | 20 74 74 4f 70 65 6e 29 |(trans >| ttOpen)| |00001560| 20 3f 20 74 74 4e 6f 6e | 65 20 3a 20 74 72 61 6e | ? ttNon|e : tran| |00001570| 73 29 2c 20 2d 33 39 38 | 32 29 3b 0d 09 09 69 66 |s), -398|2);...if| |00001580| 20 28 65 72 72 29 0d 09 | 09 09 53 79 73 42 65 65 | (err)..|..SysBee| |00001590| 70 28 37 29 3b 0d 09 09 | 0d 09 09 65 72 72 20 3d |p(7);...|...err =| |000015a0| 20 50 6c 6f 74 49 63 6f | 6e 49 44 28 26 73 6d 61 | PlotIco|nID(&sma| |000015b0| 6c 6c 54 69 6e 74 52 65 | 63 74 2c 20 30 2c 20 74 |llTintRe|ct, 0, t| |000015c0| 69 6e 74 2c 20 2d 31 36 | 35 30 39 29 3b 0d 09 09 |int, -16|509);...| |000015d0| 69 66 20 28 65 72 72 29 | 0d 09 09 09 53 79 73 42 |if (err)|....SysB| |000015e0| 65 65 70 28 37 29 3b 0d | 0d 09 09 69 66 20 28 74 |eep(7);.|...if (t| |000015f0| 68 65 49 63 6f 6e 20 3d | 3d 20 4e 55 4c 4c 29 0d |heIcon =|= NULL).| |00001600| 09 09 09 74 68 65 49 63 | 6f 6e 20 3d 20 47 65 74 |...theIc|on = Get| |00001610| 43 49 63 6f 6e 28 2d 31 | 36 33 39 36 29 3b 0d 09 |CIcon(-1|6396);..| |00001620| 09 69 66 20 28 74 68 65 | 49 63 6f 6e 20 21 3d 20 |.if (the|Icon != | |00001630| 4e 55 4c 4c 29 20 7b 0d | 09 09 09 65 72 72 20 3d |NULL) {.|...err =| |00001640| 20 50 6c 6f 74 43 49 63 | 6f 6e 48 61 6e 64 6c 65 | PlotCIc|onHandle| |00001650| 28 26 74 68 65 43 49 63 | 6f 6e 52 65 63 74 2c 20 |(&theCIc|onRect, | |00001660| 30 2c 20 74 72 61 6e 73 | 2c 20 74 68 65 49 63 6f |0, trans|, theIco| |00001670| 6e 29 3b 0d 09 09 09 69 | 66 20 28 65 72 72 29 0d |n);....i|f (err).| |00001680| 09 09 09 09 53 79 73 42 | 65 65 70 28 37 29 3b 0d |....SysB|eep(7);.| |00001690| 09 09 7d 0d 09 09 69 66 | 20 28 74 68 65 49 63 6f |..}...if| (theIco| |000016a0| 6e 20 21 3d 20 4e 55 4c | 4c 29 20 7b 0d 09 09 09 |n != NUL|L) {....| |000016b0| 65 72 72 20 3d 20 50 6c | 6f 74 43 49 63 6f 6e 48 |err = Pl|otCIconH| |000016c0| 61 6e 64 6c 65 28 26 74 | 69 6e 74 43 49 63 6f 6e |andle(&t|intCIcon| |000016d0| 52 65 63 74 2c 20 30 2c | 20 74 69 6e 74 2c 20 74 |Rect, 0,| tint, t| |000016e0| 68 65 49 63 6f 6e 29 3b | 0d 09 09 09 69 66 20 28 |heIcon);|....if (| |000016f0| 65 72 72 29 0d 09 09 09 | 09 53 79 73 42 65 65 70 |err)....|.SysBeep| |00001700| 28 37 29 3b 0d 09 09 7d | 0d 09 09 4f 66 66 73 65 |(7);...}|...Offse| |00001710| 74 52 65 63 74 28 26 62 | 69 67 52 65 63 74 2c 20 |tRect(&b|igRect, | |00001720| 20 20 20 20 20 20 35 30 | 2c 20 30 29 3b 0d 09 09 | 50|, 0);...| |00001730| 4f 66 66 73 65 74 52 65 | 63 74 28 26 73 6d 61 6c |OffsetRe|ct(&smal| |00001740| 6c 52 65 63 74 2c 20 20 | 20 20 20 35 30 2c 20 30 |lRect, | 50, 0| |00001750| 29 3b 0d 09 09 4f 66 66 | 73 65 74 52 65 63 74 28 |);...Off|setRect(| |00001760| 26 74 69 6e 74 52 65 63 | 74 2c 20 20 20 20 20 20 |&tintRec|t, | |00001770| 35 30 2c 20 30 29 3b 0d | 09 09 4f 66 66 73 65 74 |50, 0);.|..Offset| |00001780| 52 65 63 74 28 26 73 6d | 61 6c 6c 54 69 6e 74 52 |Rect(&sm|allTintR| |00001790| 65 63 74 2c 20 35 30 2c | 20 30 29 3b 0d 09 09 4f |ect, 50,| 0);...O| |000017a0| 66 66 73 65 74 52 65 63 | 74 28 26 74 68 65 43 49 |ffsetRec|t(&theCI| |000017b0| 63 6f 6e 52 65 63 74 2c | 20 20 35 30 2c 20 30 29 |conRect,| 50, 0)| |000017c0| 3b 0d 09 09 4f 66 66 73 | 65 74 52 65 63 74 28 26 |;...Offs|etRect(&| |000017d0| 74 69 6e 74 43 49 63 6f | 6e 52 65 63 74 2c 20 35 |tintCIco|nRect, 5| |000017e0| 30 2c 20 30 29 3b 0d 09 | 09 74 72 61 6e 73 20 3d |0, 0);..|.trans =| |000017f0| 20 4e 65 78 74 54 72 61 | 6e 73 66 6f 72 6d 28 74 | NextTra|nsform(t| |00001800| 72 61 6e 73 29 3b 0d 09 | 09 74 69 6e 74 20 20 3d |rans);..|.tint =| |00001810| 20 4e 65 78 74 54 69 6e | 74 28 74 69 6e 74 29 3b | NextTin|t(tint);| |00001820| 0d 09 7d 20 77 68 69 6c | 65 20 28 74 72 61 6e 73 |..} whil|e (trans| |00001830| 20 21 3d 20 74 74 4e 6f | 6e 65 29 3b 0d 09 0d 09 | != ttNo|ne);....| |00001840| 65 72 72 20 3d 20 50 6c | 6f 74 49 63 6f 6e 49 44 |err = Pl|otIconID| |00001850| 28 26 73 74 72 65 74 63 | 68 52 65 63 74 2c 20 30 |(&stretc|hRect, 0| |00001860| 2c 20 74 74 4e 6f 6e 65 | 2c 20 2d 31 36 35 30 39 |, ttNone|, -16509| |00001870| 29 3b 0d 09 69 66 20 28 | 65 72 72 29 0d 09 09 53 |);..if (|err)...S| |00001880| 79 73 42 65 65 70 28 37 | 29 3b 0d 09 0d 09 54 65 |ysBeep(7|);....Te| |00001890| 78 74 46 6f 6e 74 28 30 | 29 3b 0d 09 54 65 78 74 |xtFont(0|);..Text| |000018a0| 53 69 7a 65 28 30 29 3b | 0d 09 4d 6f 76 65 54 6f |Size(0);|..MoveTo| |000018b0| 28 32 30 2c 20 31 36 29 | 3b 0d 09 44 72 61 77 53 |(20, 16)|;..DrawS| |000018c0| 74 72 69 6e 67 28 22 5c | 70 54 68 65 73 65 20 72 |tring("\|pThese r| |000018d0| 6f 77 73 20 61 72 65 20 | 64 72 61 77 6e 20 77 69 |ows are |drawn wi| |000018e0| 74 68 20 74 68 65 20 76 | 61 72 69 6f 75 73 20 74 |th the v|arious t| |000018f0| 72 61 6e 73 66 6f 72 6d | 73 3a 22 29 3b 0d 09 4d |ransform|s:");..M| |00001900| 6f 76 65 54 6f 28 32 30 | 2c 20 31 33 36 29 3b 0d |oveTo(20|, 136);.| |00001910| 09 44 72 61 77 53 74 72 | 69 6e 67 28 22 5c 70 54 |.DrawStr|ing("\pT| |00001920| 68 65 73 65 20 72 6f 77 | 73 20 61 72 65 20 64 72 |hese row|s are dr| |00001930| 61 77 6e 20 77 69 74 68 | 20 74 68 65 20 76 61 72 |awn with| the var| |00001940| 69 6f 75 73 20 74 69 6e | 74 73 20 28 61 6e 64 20 |ious tin|ts (and | |00001950| 33 20 74 72 61 6e 73 66 | 6f 72 6d 73 29 3a 22 29 |3 transf|orms):")| |00001960| 3b 0d 09 4d 6f 76 65 54 | 6f 28 31 30 30 2c 20 32 |;..MoveT|o(100, 2| |00001970| 37 36 29 3b 0d 09 44 72 | 61 77 53 74 72 69 6e 67 |76);..Dr|awString| |00001980| 28 22 5c 70 44 65 6d 6f | 6e 73 74 72 61 74 69 6f |("\pDemo|nstratio| |00001990| 6e 20 6f 66 20 50 6c 6f | 74 49 63 6f 6e 49 44 20 |n of Plo|tIconID | |000019a0| 61 6e 64 20 50 6c 6f 74 | 43 49 63 6f 6e 48 61 6e |and Plot|CIconHan| |000019b0| 64 6c 65 20 70 65 72 20 | 54 4e 20 33 30 36 2e 22 |dle per |TN 306."| |000019c0| 29 3b 0d 09 4d 6f 76 65 | 54 6f 28 31 30 30 2c 20 |);..Move|To(100, | |000019d0| 32 39 32 29 3b 0d 09 44 | 72 61 77 53 74 72 69 6e |292);..D|rawStrin| |000019e0| 67 28 22 5c 70 54 68 65 | 20 54 65 63 68 20 4e 6f |g("\pThe| Tech No| |000019f0| 74 65 20 73 61 79 73 20 | 74 6f 20 75 73 65 20 d2 |te says |to use .| |00001a00| 61 6c 69 67 6e d3 20 6f | 66 20 7a 65 72 6f 20 77 |align. o|f zero w| |00001a10| 69 74 68 6f 75 74 20 64 | 65 66 69 6e 69 74 69 6f |ithout d|efinitio| |00001a20| 6e 2e 22 29 3b 0d 09 4d | 6f 76 65 54 6f 28 31 30 |n.");..M|oveTo(10| |00001a30| 30 2c 20 33 30 38 29 3b | 0d 09 44 72 61 77 53 74 |0, 308);|..DrawSt| |00001a40| 72 69 6e 67 28 22 5c 70 | 41 6c 69 67 6e 20 6f 66 |ring("\p|Align of| |00001a50| 20 30 20 73 65 65 6d 73 | 20 74 6f 20 62 65 20 64 | 0 seems| to be d| |00001a60| 72 61 77 20 74 6f 20 66 | 69 74 c9 73 65 65 20 74 |raw to f|it.see t| |00001a70| 68 65 20 64 6f 75 62 6c | 65 2d 73 69 7a 65 22 29 |he doubl|e-size")| |00001a80| 3b 0d 09 4d 6f 76 65 54 | 6f 28 31 30 30 2c 20 33 |;..MoveT|o(100, 3| |00001a90| 32 34 29 3b 0d 09 44 72 | 61 77 53 74 72 69 6e 67 |24);..Dr|awString| |00001aa0| 28 22 5c 70 63 6c 69 70 | 62 6f 61 72 64 20 74 6f |("\pclip|board to| |00001ab0| 20 74 68 65 20 6c 65 66 | 74 2e 22 29 3b 0d 09 4d | the lef|t.");..M| |00001ac0| 6f 76 65 54 6f 28 31 34 | 30 2c 20 33 35 36 29 3b |oveTo(14|0, 356);| |00001ad0| 0d 09 44 72 61 77 53 74 | 72 69 6e 67 28 22 5c 70 |..DrawSt|ring("\p| |00001ae0| 43 6c 69 63 6b 20 74 68 | 65 20 6d 6f 75 73 65 20 |Click th|e mouse | |00001af0| 74 6f 20 63 6f 6e 74 69 | 6e 75 65 2e 22 29 3b 0d |to conti|nue.");.| |00001b00| 0d 09 69 66 20 28 74 68 | 65 49 63 6f 6e 20 21 3d |..if (th|eIcon !=| |00001b10| 20 4e 55 4c 4c 29 0d 09 | 09 44 69 73 70 6f 73 43 | NULL)..|.DisposC| |00001b20| 49 63 6f 6e 28 74 68 65 | 49 63 6f 6e 29 3b 0d 7d |Icon(the|Icon);.}| |00001b30| 0d 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001b80| 00 00 01 00 00 00 01 6e | 00 00 00 6e 00 00 00 3e |.......n|...n...>| |00001b90| 00 04 4e ba 13 b8 60 32 | 42 67 20 54 2f 10 4e ba |..N...`2|Bg T/.N.| |00001ba0| 13 ac 42 67 20 54 2f 28 | 00 04 4e ba 13 a0 60 1a |..Bg T/(|..N...`.| |00001bb0| 0c 53 69 6c 6c 79 49 63 | 6f 6e 73 2e 63 7e 02 00 |.SillyIc|ons.c~..| |00001bc0| 00 00 50 61 72 74 53 49 | 54 78 00 00 00 00 00 00 |..PartSI|Tx......| |00001bd0| 00 00 50 61 72 74 53 49 | 54 78 00 00 00 00 00 00 |..PartSI|Tx......| |00001be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001bf0| 00 00 a9 80 1d b6 00 00 | 00 00 00 00 01 ac 48 6e |........|......Hn| |00001c00| ff ee 2f 3c 00 00 00 01 | a8 80 70 00 2d 40 ff a6 |../<....|..p.-@..| |00001c10| 70 00 2d 40 ff ac 42 67 | 48 6e ff 9a 42 67 4e ba |p.-@..Bg|Hn..BgN.| |00001c20| 14 72 3e 1f 3c 2e ff b0 | 70 00 2d 40 ff 72 2d 6e |.r>.<...|p.-@.r-n| |00001c30| 00 08 ff 78 3d 46 ff 7c | 70 00 2d 40 ff 82 70 00 |...x=F.||p.-@..p.| |00001c40| 2d 40 ff 96 42 67 48 6e | ff 66 42 67 4e ba 14 8c |-@..BgHn|.fBgN...| |00001c50| 3e 1f 3c 2e ff 7c 70 00 | 2d 40 ff a6 70 00 2d 40 |>.<..|p.|-@..p.-@| |00001c60| ff ac 3d 46 ff b0 42 6e | ff b6 42 67 48 6e ff 9a |..=F..Bn|..BgHn..| |00001c70| 42 67 4e ba 14 0c 3e 1f | 38 2e ff c2 3d 44 ff 64 |BgN...>.|8...=D.d| |00001c80| 00 00 00 48 00 09 4c 75 | 64 6c 6f 77 00 00 09 09 |...H..Lu|dlow....| |00001c90| 54 6f 20 64 65 6d 6f 6e | 73 74 72 61 74 65 20 61 |To demon|strate a| |00001ca0| 20 73 69 6d 70 6c 00 06 | 00 04 00 27 00 00 01 df | simpl..|...'....| |00001cb0| 02 30 00 27 00 00 01 df | 02 30 a5 66 8d a3 00 00 |.0.'....|.0.f....| |00001cc0| 06 d8 00 00 06 d8 00 00 | 04 98 01 00 00 00 00 1e |........|........| |00001cd0| 00 27 00 00 01 df 02 30 | 00 27 00 00 01 df 02 30 |.'.....0|.'.....0| |00001ce0| 00 00 04 98 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001cf0| 01 00 00 00 01 6e 00 00 | 00 6e 00 00 00 3e 00 43 |.....n..|.n...>.C| |00001d00| 64 c0 0d 3a 00 00 00 1c | 00 3e 00 00 4d 50 53 52 |d..:....|.>..MPSR| |00001d10| 00 01 00 0a 03 ed ff ff | 00 00 00 00 00 00 00 00 |........|........| |00001d20| 03 f0 ff ff 00 00 00 4c | 00 49 76 fc 00 00 00 00 |.......L|.Iv.....| |00001d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| +--------+-------------------------+-------------------------+--------+--------+